﻿// =================================================================== 
// 项目说明
//====================================================================
// 陈岩。@Copy Right 2006-2012
// 文件： T101_Certified.cs
// 项目名称：工程项目管理
// 创建时间：2012/6/27
// 负责人：陈岩
// ===================================================================
using System;
using System.Data;
using Enter.DataCommon;

namespace Enter.DataProxy.Mail.Entity
{
	/// <summary>
	///T101_Certified数据实体
	/// </summary>
	[Serializable]
	public class T101_CertifiedEntity : DataMapDictionary
	{

		#region 公共属性

		///<summary>
		///id
		///</summary>
		public int id
		{
			get { return Get<int>("id"); }
			set { Set("id", value); }
		}

		///<summary>
		///名称
		///</summary>
		public string title
		{
			get { return Get<string>("title"); }
			set { Set("title", value); }
		}

		///<summary>
		///图片
		///</summary>
		public string img
		{
			get { return Get<string>("img"); }
			set { Set("img", value); }
		}

		///<summary>
		///时间
		///</summary>
		public DateTime addtime
		{
			get { return Get<DateTime>("addtime"); }
			set { Set("addtime", value); }
		}

		///<summary>
		///状态
		///</summary>
		public int state
		{
			get { return Get<int>("state"); }
			set { Set("state", value); }
		}

		///<summary>
		///推荐
		///</summary>
		public int recommend
		{
			get { return Get<int>("recommend"); }
			set { Set("recommend", value); }
		}

		#endregion

		#region 私有方法

		/// <summary>
		/// 表中所有的成员字段
		/// </summary>
		private static readonly MapSetSchema _schema;

		static T101_CertifiedEntity()
		{
			_schema = new MapSetSchema();
			_schema.AddField("id");
			_schema.AddField("title");
			_schema.AddField("img");
			_schema.AddField("addtime");
			_schema.AddField("state");
			_schema.AddField("recommend");
			_schema.Compile();
		}
		/// <summary>
		/// 初始化
		/// </summary>
		public T101_CertifiedEntity()
			: base(_schema)
		{

		}

		#endregion
	}
}
